<?php
/* 
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

function __autoload($class){
    if(file_exists($class.".php")){
        $file = $class.".php";
    }else{
        $file = str_replace('_', DIRECTORY_SEPARATOR, $class) . '.php';
    }
    include_once $file;
}
